.class Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;
.super Ljava/lang/Thread;
.source "ImageSwitcherActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    .line 1710
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    const/16 v6, 0x9

    .line 1712
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v3

    iget-object v3, v3, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->photolist:Ljava/util/List;

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v4

    iget v4, v4, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->g_position:I

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/netease/newsreader/bean/PhotoInfo;

    invoke-virtual {v3}, Lcom/netease/newsreader/bean/PhotoInfo;->getImgurl()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v5}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v5

    invoke-static {v5}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$21(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Z

    move-result v5

    invoke-static {v3, v4, v5}, Lcom/netease/newsreader/util/PicUtil;->getPicturefromUrl(Ljava/lang/String;Landroid/content/Context;Z)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 1713
    .local v2, drawable:Landroid/graphics/drawable/Drawable;
    if-eqz v2, :cond_2

    move-object v0, v2

    .line 1715
    check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

    .line 1716
    .local v0, bd:Landroid/graphics/drawable/BitmapDrawable;
    if-eqz v0, :cond_0

    .line 1717
    new-instance v1, Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    .line 1718
    .local v1, bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v3

    iget-object v3, v3, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->photolist:Ljava/util/List;

    iget-object v4, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v4}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v4

    iget v4, v4, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->g_position:I

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/netease/newsreader/bean/PhotoInfo;

    invoke-virtual {v3}, Lcom/netease/newsreader/bean/PhotoInfo;->getPhotoid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/graphics/Bitmap;

    invoke-static {v4, v3}, Lcom/netease/newsreader/util/PicUtil;->downloadBitmap(Ljava/lang/String;Landroid/graphics/Bitmap;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1719
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v3

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$23(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/os/Handler;

    move-result-object v3

    const/16 v4, 0x8

    invoke-virtual {v3, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 1729
    .end local v0           #bd:Landroid/graphics/drawable/BitmapDrawable;
    .end local v1           #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_0
    :goto_0
    return-void

    .line 1721
    .restart local v0       #bd:Landroid/graphics/drawable/BitmapDrawable;
    .restart local v1       #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_1
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v3

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$23(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0

    .line 1726
    .end local v0           #bd:Landroid/graphics/drawable/BitmapDrawable;
    .end local v1           #bitmapReference:Ljava/lang/ref/WeakReference;,"Ljava/lang/ref/WeakReference<Landroid/graphics/Bitmap;>;"
    :cond_2
    iget-object v3, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4$1;->this$1:Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity$4;)Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    move-result-object v3

    invoke-static {v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$23(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/os/Handler;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0
.end method
